#include<iostream>
#include<cstring>
using namespace std;

class Solution{
public:
    bool isAnagram(string s, string t) {
    	int dict1[26], dict2[26];
    	memset(dict1, 0, sizeof(dict1));
    	memset(dict2, 0, sizeof(dict2));
		for(int i = 0; i < s.length(); i++){
			dict1[s[i] - 'a']++;
		}
		for(int i = 0; i < t.length(); i++){
			dict2[t[i] - 'a']++;
		}
		for(int i = 0; i < 26; i++){
			if(dict1[i] != dict2[i])return false;
		} 
		return true;
    }
};

int main(){
	return 0;
}
